package Proxy.CjlibProxy;

import Proxy.DynamicProxy.RealSubject;
import Proxy.DynamicProxy.Subject;

/**
 * Created by svenl on 7/11/2017.
 */
public class Main {

    public static void main(String[] args) {
        Subject subject = new RealSubject();

        CjlibProxy cjlibProxy = new CjlibProxy(subject);

        Subject proxy = cjlibProxy.createProxy();

        proxy.hello("Sven");

        System.out.println(proxy.getClass().getName());


    }


}

